package com.nciae.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.nciae.po.Score;
import com.nciae.dao.ScoreMapper;
import com.nciae.service.IScoreService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author Guoliyu
 * @since 2022-03-31
 */
@Service
public class ScoreServiceImpl extends ServiceImpl<ScoreMapper, Score> implements IScoreService {

    @Override
    public void addScore(Score score) {
        score.setScoreTime(new Date());
        baseMapper.insert(score);
    }

    @Override
    public void findScoreByDormitoryId(Long id) {

    }

    @Override
    public List<Score> selectList(QueryWrapper wrapper) {
       return baseMapper.selectList(wrapper);
    }
}
